import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        Myheap myheap=new Myheap();
        int[] arr={1,2,3,4,5,6,7,8,9,0};
        myheap.init(arr);
        myheap.creatHeap();

        System.out.println(myheap.pop());
        System.out.println(myheap.pop());
        System.out.println(myheap.pop());
        System.out.println(myheap.pop());
        System.out.println(myheap.pop());
        System.out.println(myheap.pop());
        System.out.println(myheap.pop());





    }


}
